const state = () => ({
	details: {},
	buyInfo:{
		quantity:1
	}
})
const getters = {
	details(state) {
		return state.details;
	},
	buyInfo(state) {
		return state.buyInfo;
	}
}
const mutations = {
	set_details: (state, data) => {
		state.details = data
	},
	set_buyInfo: (state, obj) => {
		Object.assign(state.buyInfo,obj)
	},
	set_init_buyInfo: (state, obj) => {
		state.buyInfo = {quantity:1}
	},
}
const actions = {
	
}

export default {
	namespaced: true,
	state,
	getters,
	mutations,
	actions
}
